package com.ziwei.material.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ziwei.material.domain.po.SdsMaterialTask;
import com.ziwei.material.domain.vo.ResultVo;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author: jl_zhang
 * @since: 2024/11/14 14:16
 **/

//素材导入服务
public interface MaterialTaskService extends IService<SdsMaterialTask> {


    ResultVo<Void> importExcel(MultipartFile excel, Long userId);

    //更新任务表状态
    void updateTaskImportCondition(int num, Long taskId);

    //导入全部失败,更新任务表信息
    void updateTaskFailImportCondition(Long taskId);

    //下载结束,更新任务表信息
    void updateTaskDownloadCondition(int downloadNum, Long taskId);

    //下载全部失败,更新任务表信息(已完成)
    void updateTaskAllFailDownloadCondition(Long taskId);
}
